package com.totoro.rpc.register;

import lombok.Data;

/**
 * Zookeeper的配置类
 * Created by Niki on 2018/5/7 17:51
 */
@Data
public class ZookeeperConfig {
    // TODO: 2018/5/8 使用配置文件来设置这些参数的值
    private static final String ROOT_PATH = "netty_rpc";

    public static String getRootPath() {
        return ROOT_PATH;
    }

    /* 注册的目录 */
    private static String zk_regis_path = "rpc_registry";

    public static String getZk_regis_path() {
        return zk_regis_path;
    }

    private  int zk_session_timeout = 5000;
    private  int zk_connection_timeout = 1000;

}
